<?php
namespace app\common\model;

use think\Model;

class Brand extends Model
{
    public function cat(){
        return $this->hasOne('Category','id','catid')->field('id,title,thumb');
    }

}